<template>
  <div>
     <h3>{{msg}}</h3>
     <button @click="fn">翻转世界</button>
   </div>
</template>
 
<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      msg:"hello,word"
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    fn(){
      this.msg=this.msg.split("").reverse().join('')
    }
  }
};
</script>

<style scoped>
     
</style>
